package flexjson.factories;

import java.util.HashMap;
import java.util.Map;

import flexjson.ObjectBinder;
import flexjson.ObjectFactory;

public class MapObjectFactory implements ObjectFactory {
    public Object instantiate(ObjectBinder context, Object value, Class targetType, Class targetClass) {
        return context.bindIntoMap( (Map)value, new HashMap(), null, null );
    }
}
